package cn01;

//多个数组执行相同的空间

public class test03 {
    public static void main(String[] args) {
        int[] arr1 = new int[3];
        arr1[0] = 100;
        arr1[1] = 200;
        arr1[2] = 300;
        System.out.println(arr1);
        System.out.println(arr1[0]);
        System.out.println(arr1[1]);
        System.out.println(arr1[2]);

        int[] arr2 = arr1;
        arr2[0] = 111;
        arr2[1] = 222;
        arr2[2] = 333;
        System.out.println(arr1);
        System.out.println(arr1[0]);
        System.out.println(arr2);
        System.out.println(arr2[0]);

    }
}
